From 1b755c546e5ab0693ae921f7febc1c8bb439193f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 18 Jun 2015 15:14:54 -0400 Subject: [PATCH] Fix an oversight in the previous commit We lost the line marking the search model as non-empty, causing us to show the 'no results' page despite there being results. --- gtk/gtkfilechooserwidget.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 2159607032..51ba79e2e6 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -6138,6 +6138,9 @@ search_engine_hits_added_cb (GtkSearchEngine *engine, files = g_list_prepend (files, file); } + if (files) + impl->priv->search_model_empty = FALSE; + _gtk_file_system_model_add_and_query_files (impl->priv->search_model, files, MODEL_ATTRIBUTES); -- 2.30.2